home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_04
/
1004034a
< prev
next >
Wrap
Text File
|
1992-02-08
|
683b
|
34 lines
/* Listing 1 */
switch ( argv[1][0] )
{
case 'a':
case 'A':
status = add_data_to_db( argv[2] );
break;
case 'd':
case 'D':
status = del_data_from_db( argv[2] );
break;
case 'g':
case 'G':
status = get_data_from_db( argv[2], argv[3] );
break;
case 'l';
case 'L';
status = list_keys_in_db();
break;
case 'r';
case 'R';
status = replace_data_in_db( argv[2], argv[3] );
break;
case 'v':
case 'V':
status = vrfy_data_in_db( argv[2], argv[3] );
break;
default:
status = FAIL;
break;
} /* switch ( argv[1][0] ) */